home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2000 September / september_2000.iso / intercd / root / ^Linux / cdrtools-1.10 / include / standard.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-28  |  2.8 KB  |  131 lines

  1. /* @(#)standard.h    1.24 00/05/28 Copyright 1985 J. Schilling */
  2. /*
  3.  *    standard definitions
  4.  *
  5.  *    This file should be included past:
  6.  *
  7.  *    mconfig.h / config.h
  8.  *    stdio.h
  9.  *    stdlib.h
  10.  *    unistd.h
  11.  *    string.h
  12.  *    sys/types.h
  13.  *
  14.  *    Copyright (c) 1985 J. Schilling
  15.  */
  16. /*
  17.  * This program is free software; you can redistribute it and/or modify
  18.  * it under the terms of the GNU General Public License as published by
  19.  * the Free Software Foundation; either version 2, or (at your option)
  20.  * any later version.
  21.  *
  22.  * This program is distributed in the hope that it will be useful,
  23.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  24.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  25.  * GNU General Public License for more details.
  26.  *
  27.  * You should have received a copy of the GNU General Public License
  28.  * along with this program; see the file COPYING.  If not, write to
  29.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  30.  */
  31.  
  32. #ifndef _STANDARD_H
  33. #define _STANDARD_H
  34.  
  35. #ifdef    M68000
  36. #    ifndef    tos
  37. #        define    JOS    1
  38. #    endif
  39. #endif
  40. #ifndef _MCONFIG_H
  41. #include <mconfig.h>
  42. #endif
  43. #ifndef _PROTOTYP_H
  44. #include <prototyp.h>
  45. #endif
  46.  
  47. /*
  48.  *    fundamental constants
  49.  */
  50. #ifndef    NULL
  51. #    define    NULL        0
  52. #endif
  53. #ifndef    TRUE
  54. #    define    TRUE        1
  55. #    define    FALSE        0
  56. #endif
  57. #define    YES            1
  58. #define    NO            0
  59.  
  60. /*
  61.  *    Program exit codes
  62.  */
  63. #define    EX_BAD            (-1)
  64.  
  65. /*
  66.  *    standard storage class definitions
  67.  */
  68. #define    GLOBAL    extern
  69. #define    IMPORT    extern
  70. #define    EXPORT
  71. #define    INTERN    static
  72. #define    LOCAL    static
  73. #define    FAST    register
  74. #if defined(_JOS) || defined(JOS)
  75. #    define    global    extern
  76. #    define    import    extern
  77. #    define    export
  78. #    define    intern    static
  79. #    define    local    static
  80. #    define    fast    register
  81. #endif
  82. #ifndef    PROTOTYPES
  83. #    ifndef    const
  84. #        define    const
  85. #    endif
  86. #    ifndef    signed
  87. #        define    signed
  88. #    endif
  89. #    ifndef    volatile
  90. #        define    volatile
  91. #    endif
  92. #endif    /* PROTOTYPES */
  93.  
  94. /*
  95.  *    standard type definitions
  96.  *
  97.  *    The hidden Schily BOOL definition is used in case we need to deal
  98.  *    with other BOOL defines on systems we like to port to.
  99.  */
  100. typedef int __SBOOL;
  101. typedef int BOOL;
  102. typedef int bool;
  103. #ifdef    JOS
  104. #    define    NO_VOID
  105. #endif
  106. #ifdef    NO_VOID
  107.     typedef    int    VOID;
  108. #    ifndef    lint
  109.         typedef int void;
  110. #    endif
  111. #else
  112.     typedef    void    VOID;
  113. #endif
  114.  
  115. #if    defined(_SIZE_T)     || defined(_T_SIZE_) || defined(_T_SIZE) || \
  116.     defined(__SIZE_T)    || defined(_SIZE_T_) || \
  117.     defined(_GCC_SIZE_T) || defined(_SIZET_)  || \
  118.     defined(__sys_stdtypes_h) || defined(___int_size_t_h) || defined(size_t)
  119.  
  120. #ifndef    HAVE_SIZE_T
  121. #    define    HAVE_SIZE_T    /* We already included a size_t definition */
  122. #endif
  123. #endif
  124.  
  125. #if defined(_JOS) || defined(JOS)
  126. #    include <schily.h>
  127. #    include <jos_io.h>
  128. #endif
  129.  
  130. #endif    /* _STANDARD_H */
  131.